import request from "@/axios/request";
import url from "@/axios/url";
const { adminUrl } = url();

// 分页查询
export function getList (params = {}) {
  return request({
    url: `${adminUrl}commonBaseEquipment`,
    method: "get",
    params,
  });
}

// 详情
export function rowDetail (id) {
  return request({
    url: `${adminUrl}commonBaseEquipment/info/${id}`,
    method: "get",
  });
}

// 不分页查询
export function getAllList (params = {}) {
  return request({
    url: `${adminUrl}commonBaseEquipment/list`,
    method: "get",
    params,
  });
}